<?php

$item = $this->getItem();
//print_r($item);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>item</title>
<link rel="stylesheet" type="text/css" href="/css/style.css"/>
<?php echo Lin_Grid::includeSource() ?>
<?php echo Lin_Loader::validation() ?>
<script language="javascript">
$(function(){
	$(".button-div a").button();
	jQuery("#item_add").validationEngine();
});
</script>
</head>
<body>
<div class="container">
  <div class="title"><h3>Edit Item</h3></div>
  <form name="item_add" id="item_add" action="" method="post">
  <input id="action" name="action" type="hidden" value="edit" />
  <input id="item_id" name="item_id" type="hidden" value="<?php echo $item['item_id'] ?>" />

  <table width="100%" border="0" cellspacing="1" cellpadding="2">
  <tr>
    <td width="150" height="25" align="right">SKU:</td>
    <td><input name="item_sku" type="text" class="validate[required] text-input" id="item_sku" value="<?php echo $item['item_sku'] ?>"></td>
  </tr>
  <tr>
    <td height="25" align="right">Description:</td>
    <td><input name="item_description" type="text" class="text-input" id="item_description" value="<?php echo $item['item_description'] ?>" size="100"></td>
  </tr>
  <tr>
    <td height="25" align="right">Cost:</td>
    <td><input name="item_cost" type="text" class="validate[custom[number],min[0]] text-input" id="item_cost" value="<?php echo $item['item_cost'] ?>"></td>
  </tr>
  <tr>
    <td height="25" align="right">Quantity:</td>
    <td><input name="item_quantity" type="text" class="validate[custom[integer],min[0]] text-input" id="item_quantity" value="<?php echo $item['item_quantity']  ?>"></td>
  </tr>
  <tr>
    <td height="25" align="right">Length:</td>
    <td><input name="item_length" type="text" class="validate[custom[integer],min[0]] text-input" id="item_length" value="<?php echo $item['item_length']  ?>"></td>
  </tr>
  <tr>
    <td height="25" align="right">Width:</td>
    <td><input name="item_width" type="text" class="validate[custom[integer],min[0]] text-input" id="item_width" value="<?php echo $item['item_width']  ?>"></td>
  </tr>
  <tr>
    <td height="25" align="right">Height:</td>
    <td><input name="item_height" type="text" class="validate[custom[integer],min[0]] text-input" id="item_height" value="<?php echo $item['item_height']  ?>"></td>
  </tr>
  <tr>
    <td height="25" align="right">Weight:</td>
    <td><input name="item_weight" type="text" class="validate[custom[integer],min[0]] text-input" id="item_weight" value="<?php echo $item['item_weight']  ?>"></td>
  </tr>
  <tr>
    <td height="25" align="right">&nbsp;</td>
    <td><input type="submit" name="submit" id="submit" value="Submit">
      <input type="button" name="black" id="black" value="Black" onClick=" location.href='/product/'; "></td>
  </tr>
</table>
</form>
</div>
</body>
</html>